package com.nuoniu.sibanyun.entity.erp.barcode;

import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDate;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 条码工序汇报记录
 * </p>
 *
 * @author 白强
 * @since 2021-11-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("bc_barcode_process_report")
@ApiModel(value="ErpBarcodeProcessReport对象", description="条码工序汇报记录")
public class ErpBarcodeProcessReport extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "账套id")
    @TableField("account_id")
    private Integer accountId;

    @ApiModelProperty(value = "公司id")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "条码")
    @TableField("barcode")
    private String barcode;

    @ApiModelProperty(value = "工艺路线id")
    @TableField("process_route_id")
    private Integer processRouteId;

    @ApiModelProperty(value = "工艺路线名称")
    @TableField("process_route_name")
    private String processRouteName;

    @ApiModelProperty(value = "工艺路线明细id")
    @TableField("process_route_detail_id")
    private Integer processRouteDetailId;

    @ApiModelProperty(value = "工序id")
    @TableField("procedure_id")
    private Integer procedureId;

    @ApiModelProperty(value = "工序名称")
    @TableField("procedure_name")
    private String procedureName;

    @ApiModelProperty(value = "工序顺序")
    @TableField("procedure_order")
    private Integer procedureOrder;

    @ApiModelProperty(value = "工序标识 1：首 2：中间 3：尾")
    @TableField("procedure_flag")
    private Integer procedureFlag;

    @ApiModelProperty(value = "下一道工序id")
    @TableField("next_procedure_id")
    private Integer nextProcedureId;

    @ApiModelProperty(value = "下一道工序名称")
    @TableField("next_procedure_name")
    private String nextProcedureName;

    @ApiModelProperty(value = "下一道工序顺序")
    @TableField("next_procedure_order")
    private Integer nextProcedureOrder;

    @ApiModelProperty(value = "下一道工序标识 1：首 2：中间 3：尾")
    @TableField("next_procedure_flag")
    private Integer nextProcedureFlag;

    @ApiModelProperty(value = "汇报时间")
    @TableField("report_time")
    private LocalDateTime reportTime;

    @ApiModelProperty(value = "汇报人")
    @TableField("report_user_id")
    private Integer reportUserId;

    @ApiModelProperty(value = "汇报")
    @TableField("report_user_name")
    private String reportUserName;

    @ApiModelProperty(value = "来源单id")
    @TableField("source_voucher_id")
    private Integer sourceVoucherId;

    @ApiModelProperty(value = "来源单号")
    @TableField("source_voucher_code")
    private String sourceVoucherCode;

    @ApiModelProperty(value = "来源单据")
    @TableField("source_voucher_type")
    private String sourceVoucherType;

    @ApiModelProperty(value = "来源单据日期")
    @TableField("source_voucher_date")
    private LocalDate sourceVoucherDate;

    @ApiModelProperty(value = "来源明细ID")
    @TableField("source_detail_id")
    private Integer sourceDetailId;


}
